package com.better.backend.mqReceiverService.studentRecever.repository;

import com.better.backend.mqReceiverService.studentRecever.model.ScoreReceverModel;
import com.better.common.mongo.repository.CommonRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 唐平
 * Date : 2017/11/12
 */
@Repository
public interface ScoreReceverModelRepository extends CommonRepository<ScoreReceverModel,String> {
    List<ScoreReceverModel> findByExamId(String examId);
    List<ScoreReceverModel> findByExamIdAndClassIdAndSubjectId(String examId,String classId,String subjectId);
    void deleteScoreReceverModelByClassIdAndExamIdAndSubjectId(String classId,String examId,String subjectId);
}
